import request from '../utils/request';
//模板模拟
export const fetchData = query => {
    return request({
        url: './table.json',
        method: 'get',
        params: query
    });
};
//查询优惠劵
export const cardList =query=> {
    return request({
        url: '/vehicle/discounts/addUserDiscounts',
        method: 'post',
        params:query
    });
};
//所有优惠劵
export const AllCard = query=> {
    return request({
        url: '/vehicle/discounts/queryUserDiscounts',
        method: 'get',
        params:query
    });
};

//消费记录
export const Record = query=> {
    return request({
        url: '/vehicle/order/_?',
        method: 'get',
        params:query
    });
};
//添加车辆
export const addCar = query=> {
    return request({
        url: '/vehicle/cars/add',
        method: 'post',
        params:query
    });
};
//查询我的车辆
export const myCar = query=> {
    return request({
        url: '/vehicle/cars/myCar',
        method: 'get',
        params:query
    });
};
//删除我的车辆
export const deleteCar = query=> {
    return request({
        url: '/vehicle/cars/delete',
        method: 'post',
        params:query
    });
};
